<html>

<head>
<title>VBS Script by Adisak Pochanayon</title>
</head>

<body>

<p>VBS Script by Adisak Pochanayon<br>
Released under MIT License (Open Source)<br>
Copyright 2007 - Adisak Pochanayon<br>
<br>
This script allows you to more easily compare VCPROJ files by splitting up 
certain lines which tend to get very long according to simple separator rules.<br>
<br>
It does this by splitting a single line from a project (VCPROJ) like the 
following example:<br>
<br>
<font face="Courier New">AdditionalIncludeDirectories=&quot;..\..\D3DDrv\Inc;..\..\..\External\Physics\sdk\inc<br>
lude\common;..\..\PhysicsEngine\Inc;..\..\Core\Inc;..\..\Engine\Inc;..\..\Engine<br>
\Src;..\..\SoftLibMath\Inc;..\..\SoftLibGraphics\Inc;..\..\SoftLibEngine\Inc;..\<br>
..\SoftLibActors\Inc;..\..\SoftLibUtilities\Inc;..\..\SoftLibCinema\Inc;..\..\So<br>
ftLibDebugVisualization\Inc;..\..\SoftLibMemoryTracking\Inc;..\..\PreCompiledHea<br>
ders\Inc;..\..\SoftLibUI\Inc;..\..\..\External\AudioGFx\Include&quot;<br>
</font>
<br>
into a block surrounded by <b>&lt;SplitzLine&gt;</b> tags which can be compared and 
edited much more easily in Beyond-Compare:<br>
<br>
<font face="Courier New">
<b>&lt;SplitzLine&gt;</b><br>
AdditionalIncludeDirectories=&quot;<br>
..\..\D3DDrv\Inc;<br>
..\..\..\External\Physics\sdk\include\common;<br>
..\..\PhysicsEngine\Inc;<br>
..\..\Core\Inc;<br>
..\..\Engine\Inc;<br>
..\..\Engine\Src;<br>
..\..\SoftLibMath\Inc;<br>
..\..\SoftLibGraphics\Inc;<br>
..\..\SoftLibEngine\Inc;<br>
..\..\SoftLibActors\Inc;<br>
..\..\SoftLibUtilities\Inc;<br>
..\..\SoftLibCinema\Inc;<br>
..\..\SoftLibDebugVisualization\Inc;<br>
..\..\SoftLibMemoryTracking\Inc;<br>
..\..\PreCompiledHeaders\Inc;<br>
..\..\SoftLibUI\Inc;<br>
..\..\..\External\AudioGFx\Include<br>
&quot;<br>
<b>&lt;/SplitzLine&gt;</b></font><br>
<br>
The sub-lines can be compared, diff'ed, and edited, and when you save it, it 
will magically convert it back into a single line by joining all lines in a <b>&lt;SplitzLine&gt;</b> 
tag block.<br>
<br>
Copy this script somewhere you keep binaries / dos-tools.<br>
<br>
Then use the following steps to integrate this script into Beyond Compare:<br>
<br>
1) Goto Menu Tools -&gt; Options<br>
2) Select Rules in the option tree<br>
3) Click the &quot;New&quot; Rule and Select &quot;File Viewer&quot; as handler (it's the default) 
and click &quot;OK&quot;<br>
4) In the &quot;File Comparison Rules&quot; box that pops up under General type the 
following (<i><b>bold-italics</b></i>)<br>
&nbsp;&nbsp;&nbsp;&nbsp; Name: <i><b>Visual Studio Project</b></i><br>
&nbsp;&nbsp;&nbsp;&nbsp; Associated with: <i><b>*.vcproj</b></i><br>
5) On the &quot;Conversion&quot; tab type select the &quot;External Program&quot; radio button<br>
6) Deselect the &quot;Read-only&quot; box by &quot;Run when saving&quot;<br>
7) Enter the following on BOTH &quot;Run when loading&quot; and &quot;Run when saving&quot; :<br>
<i><b>&nbsp;&nbsp;&nbsp;&nbsp; cscript //nologo SplitVCProj\split_vcproj.vbs %s 
%t</b></i><br>
8) The rule will be at the top of your list. I suggest using the down-arrow to 
move it to below &quot;Everything Else&quot; where it will turn <b><font color="#FF0000">
RED</font></b>. The <b><font color="#FF0000">RED</font></b> means you have to 
activate the rule manually which you can do at any time by clicking on the 
drop-down-arrow to the right of the &quot;Referee&quot; icon and selecting your rule.<br>
<br>
Enjoy much easier compares of VCPROJ files.<br>
<br>
To add more rules or modify how lines are split, just go to the Case statement 
at the end of the script, it's completely trivial to do.<br>
<br>
<br>
&nbsp;</p>

</body>

</html>